package com.zyf.mvc.service.impl;
import com.zyf.mvc.annotation.MethodLog;
import com.zyf.mvc.mapper.UserMapper;
import com.zyf.mvc.pojo.User;
import com.zyf.mvc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by 庄 on 2017/5/9.
 */

@Service("userservice")
public class UserServiceImpl implements UserService {
    //User接口
@Autowired
private UserMapper usermapper;

    @MethodLog(description = "保存-方法名称findUser", clazz = User.class)
    public List<User> findUser() throws Exception {
        List<User> user = usermapper.selectByExample(null);
        return user;
    }



}